add <?php and newlines when pulling