add an inspect method for repls