moved sleep to after getting papers.: