add onNotFound
add diary