add some function for easy REPL testing.