forgot some json return
add some error handling