semi-non working version with all this fancy evented shit that doesnt work