add executor support to fileresource