bugfixes and support console.*