refactor initialization + test compression