cloned from https://sf.net/p/instlux