added insert_inv script