adding more windows capabilities, optimizing other code. needs testing