remove extra deps, throw better errors