bugfix afterinitialize that didn't get called. Now it does get called, right after the initialize