Issue #171: added 'prepared' state to activity initialization