adapted to new Level#action_queue api