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