started threading  with a mailbox to pass variables