adjusted handling of system selection input box and added error log