offloading events to acpid
small refactoring