port to yogi, fix for jslint triggered by yogi