added cl and rs support to load file