re-definition the log API