rework record command (not yet fully implemented)