make configurable LARGEPAGES and fixed a samll bug