mini: writeout constant values instead of using global vars