use check_call, raise Exception directly
fix logPL calculate