almost rewrote from scratch onResume/onCommit and onServiceConnected/onServiceDisconnected business logic, various fixes and debugging output