auto add file extension