make the binstub general purpose