modified:   ../rt_core/rt_api.c
	modified:   rt_pg.c

refactored code for performance and added function is visible.