prepare to write entry and build file