added different ready functiion, possible to init during runtime