modified get for restful applcation