fix for accessing non object
added helper
fix for autotest.sh