add rest functionality