add script for tailing production log
make indentation a little nicer
small refactoring