fix some importing issues, fix compiler script execution