refactor log printf
auth is support now