moved code away from binary