apllied windows changes. consts are now in their own file.