update pet for support for declarations insides scops