add new methods for post and get