add convenience function 'sleep'