delete legacy loader code