introduce relative_filename and use it