fix bug with form changes and whatnot
add sleep clause