add error handling when key class mistake Symbol for String
use RBatch.conf_dir instead of gsub<home>
add library directory