working on the serve api