some debug fns