added api functions to express