optimize imported files