added resolveFile to receive file path without exception when file not exists