added --debug and --strip-resources options