added validation for resourceLocator
fixed syntax bug