log basic api works, next will add the log statements into other lines