make prompt work as expected, fixes #5