creation method for config