improved string replacement
allowed import from other directory
fixed uniqueID regex
added requested name to error message