json working, need to return to main somehow