NApi debug and util