add check for deployUnit to avoid uncomplete model library