add system check, bash arrays, fix export