added autoInit option