updated to newest rex, added init scripts