remove useless code
make the process of parsing each layer files be parallel and remove the risk of invalid dir