script and config cleanup and update
minor cleanup
fix hash reference key lookup for older perls