added post request parsing, and added more functions