fixed scripts and styles bundles
fixed error handling