shorter main function, less whining