fixes issues #27 sanitize inputs
fixes issues #27 sanitize inputs