implemented dictionary for /better/(?) error code handling -> less hard coded, repeating strings