remove magic numbers by defining enum `status`
cleanup 2
use stringstream