managed console function