better checks for stride in prepareClientAttributes