add console dir logging functions
??? merge?