updating setup for platform and also fixing breaking change in User model