separate rest from app