add missing _prepare_deps method