remove unused args, remove unnecessary idcert read