adapted to pyload-common repo