updated to use Clay register call