reset base to public directory