I created a pm.rb filr to work with my terminal client
refactored and built error handling methods