modified dynamic indexing and migrate vs delete to be booleans