move context.inc to compile function