updated bioreactor class