implements load functionality