update lock file
use one method for write lines in output
add class for group methods for add config