update to use max attempts
0.1.2