added idle functionality, renamed name space