rest routes fixes added