generalized loader, fixed linux window management