upgraded file options validator
added source maps support