initial work on generating a default action in middle. probably doesnt compile