switched to an interface communication
added quit handler