add restrain map to setup future extracted plugin
make L command work on mac