support empty view dir