stupid hack for avoiding lambdas