bioreader, encoding and other cleaning up