move ptt to helpers
move ptt to helpers
move reviter to helpers
move istype, mktype to helpers
move more to helper functions