added configurable assertions - fix #139