complete imports compile function