fixing some issues while importing and better error display