added quit functionality, busy with capturing functionality