use of config for version,
fixed bug onError