add config for phpmad