use wallsleeps to avoid simulation problems, closes #46.