more constness, more boost filesystem, more RAII