General config writting