Added server-side helpers, refactored file loader