a few tweaks (use strict and associated needed changes)