profile checking for file existence before source