dynamically load compression level function