both get and post working