code clean up aroud flextures options functions