Resource extension and main="true"