put sleep somewhere more reliable :/