implemented readinfo in interactive mode