erm pm stuff didnt get commited, also added the delete function back in but theres a error with it right now.