just to complete this thread, it turned out that from uri matching didn't happen because load_gws() was called without caller uri argument. -- juha