when getting modules 'manually' pass locals as context.