add save save-dev and save-peer
fixed various issues