plug dependencies and update fix some errors