moved expect init