implemented wake locks