[mod] code cleanup and imp CussorLoader in progress.