post and dm working, necessary functions finished