moved renderer over, moved init code