adding sleep closes #36