added a number of optional config settings: ssl validation, error capture