moving helper class out of autorun.php file