resolve now also handles named services
jslint required semicolon