added compression parameter to interface