prettyfy, made mem/ports configurable