add panics to track down why not working