add wrong appoint check
add status code