auto make pid dir
add write debug log right now method