all the initialization is now done "onready" to avoid loading errors