revamp get and post