fixed off-by-one error with api names. also added the mongod