refactoring of export obj code to consider faces