for regex's to work properly we need to pass just filename instead of full filename