added common get handler
unit tests working