rewrite in progress; python FTW !
fix