move rename() to object(). Closes #252