added default for assert error stackStartFunction
added fail function