use strict/warnings, fix errors