added wakelock trigger related functionality