cleanup shader loader code