added condebug option for troubleshooting