modify code for single binary file stub builder