ugly as sin, but functional