use code for assertion lib

fixes #33