ctx: adapt to the len-aware atom functions