replace MAIN_INSTANCE by PARENT_URL