move posting functions to class file