added global error handler + fix assets/metafields