use a proper hashbang
cleaner opt parsing and logging