extra logging and testing