api: add rename() method