fixed rick roll
ported training script, it's not runnable yet though