bugfix prompt($$) and rename function