removed logging code from api