assignment and array_load improvements

added naive boolean to switch between modes