handle generic files