assoc_array: modifications for userspace