works on ilabs now

remember to malloc all pointers...
still global. must fix