update helper logic to not rely on bin filename