created pockets controller + fixed scope issues
some housekeeping