add some improvements to prevent warning messages and problem to import ...

...categories and products