removed leftover debug sleep()
minor adjustments