slowly adding the rest api