added foreign-regexp & disabled shm