fix to use RETURN_MEMBER
inject global variables