added restriction support to wrapper functions