added autoconfigure