delete content in bin
create ser directory if it doesnt exist