New api

working on api section now