made require be require_once
moved all functions into utils