use sorted map when getting list of imports
add null check
fix regression caused by refactoring
unstable 0.5 jar