sorting out GET/POST