change get() to remove() for memory... and updated response handling