looks like this is copy/pasted from fri custom app. should move to somewhere shared.