optimizing imports
serialize for metrics