added wrap_size_limit function to gsscontext