command reading logic and edited prompt msg