added option -e to tobp