may be an issue with openssl and the var $output