extract working ok without extension
generating file extension