magic for generating binaries