added automatic pre-configuratoin