get and post methods work now