added rest auth layer and cusotm serializer