Get a better deployment

-fix files owner
-fix some bugs