initial extension code