added res and window system works