improved handling of value entered via prompt