Switch to using an imports table instead of mucking about with processes
handle situation when there are no imports