rewrite room loader