added strict mode, fixes #41