adds delay support

closes #4