Rewrote the Rexfile in order tot make it usable with lamadmin (still not compatible but on good way).