made functions stacktracable