fixed deprecated method calls.  enabled package restore.