first try at integrating. not currently working but does not explode.