added wrapper to handle PF logic on controllers