added price query and rudimentary registering