switched to asserts

Note: Enable asserts (-ea) for testing!