made loader optional