first true working release
dinamically allocate filename
fix redundant slash