build and utilize locals.php resource