am: drop "dir" parameter from am_state_init