pass contexual info for bools, errors, etc. from C++