added a few features, fixed cl error prompt