move re compilation to the import time