hopefully a better way for this
adding debug