logging and correct binding