play_controller: favor local variables over global