clearing directory before building namespace in order to avoid namespace duplication