moved prepare script