more debugging and testing