fixes bug(not updated when error occured).
update pid when worker started(for multi-fork).
add funcitons for admin.