parsing script prototype