remove traces of g_inside_code (a tentative way to fix #1 issue), as it was reintroduced in merged code