fixed bug w/ connecting inputs, added profiling support