add console output for debugging