doing client magic