we have to move this from notebook to normal python. cannot do this right now since my notebook doesn't work. at least i could recover a version that cannot be older than 2 weeks of the final version I had mid of april