changed provider options initialization
fixed error handler for windows