fixed a few more bugs : the pipeline is set up but some things still need to be fixed