[api] add support for update project lookup in instantiate command

- also small code cleanup for generic update project lookup