re-organizing scripts + made renfile accept input