added option for skipping extension validation