Four quark states and open charm production