fixed some output issues with collapse console