fooled around a bit, minor improvements on flex file, still not working properly