move most helpers from request js to helper file