debug func takes only one param (lib)