improve mkconfig