changed mailbox scanning to only one mailbox, added logging to registration