support for current stat in controller
modifications of the phar implemenation in the controller
throw another exception in the agent error wrapper