support user defined error
add supported ruby version 2.1.1