Safer imports and module load