setup for final actions