move lw_from_file up...