fixed conditional import