File loader partially working