some magic for fpm