much better handling of prompt... no more errors when sudoing