added uflex code