make resolve's argument to be optional