sister commit of https://github.com/basz/SlmQueue/commit/c282e9db3df96d719cbb639b22b86e07ed7c2755