extract
optimize add task, tweak log and type
tweak scripts