implemented -e flag