added prompt command, several rewrites