rewrite script using execo 2.3