fixes #392, adds delay param