fix inconsistencies with cose and use strict; closes #425