debug prints to apilib class