hangover from previous issue where I wasn't returning p from at the end of the promises add_callback listings. That led to state not being created so state_name became inaccessible. Thanks for picking up.