add some helper functions
add ruby, python error formats