merging passed parameters instead of using default\nadded argument to pass debug mode
test fix