changed some methods to get from post