system will exit if errors with inputs