switched document root to public folder