fix scope error on funcarg. also try and control the logging output more.