add limit for memory using
fix the access problem of creating file
change all `lloc` to `illoc`