changed meta api
fix onready logic