removed bug in logon_callback