setting up get and put commands, form interaction