added a tested revision of registration script, supporting cast