fix vanishing frames for anon. higher-order fns
take out testing code