clearly i need to put this under a debug flag