accept gets and posts