fix typo
add return type
improve server