basic get and post implemented but not working yet