adds sleep
cleanups