made file ending configurable