finished no-GUI prepare_dp.py