fix null reference in speech engine
improve WP upload handeling.