added debug -e option