gets and posts working finally