new resource api
fix private key & output params