fixed file permissions and short open tag issue