fixed loader initialization to create a default state