Common utils for SWX