add some error handling when importing
disconnect signals when importing