the feature currently only support bin file which is rarely used but introduce ugly code across the project