change to lexical scope
minor fix increase sleep for test