using qobject for entity system lifetime management now
working on script support