MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Bugs and Requests => Topic started by: Spacedust on 2015-07-01, 10:16:33

Title: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 10:16:33
Please see: http://www.webmama.com.pl/
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 11:20:57
It happens only on one Wordpress on the same customer. Others are fine.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-01, 11:46:16
Maybe related to site_url in wp database.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 12:26:20
Maybe related to site_url in wp database.

It looks like this:

Quote
Pe?ne teksty    option_id    option_name    option_value    autoload
   Edytuj Edytuj    Kopiuj Kopiuj    Usu? Usu?    1    siteurl    http://www.webmama.com.pl    yes
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 20:56:29
More customers are reporting troubles with Wordpress.

All have redirect loop ;(
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-01, 21:04:40
No issue I found for Wordpress (including Multisite version) under hiawatha-proxy. For me, more prefer hiawatha instead nginx for proxy.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 21:07:40
No issue I found for Wordpress (including Multisite version) under hiawatha-proxy. For me, more prefer hiawatha instead nginx for proxy.

It was working well with apache 2.2 and nginx.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-01, 21:08:59
Try disable cache plugins and then enable again.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 21:16:52
Try disable cache plugins and then enable again.

Does not help - still redirect loop. We have 4 Wordpress pages down right now ;(
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 21:31:28
See example:

Non working:

Quote
[root@online /]# curl -s --head http://webmama.com.pl
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 01 Jul 2015 19:34:23 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.webmama.com.pl/xmlrpc.php
Set-Cookie: PHPSESSID=292587601a466394a15445b74c356880; path=/
Location: http://www.webmama.com.pl/
X-Micro-Cache: MISS

Working:

Quote
[root@online /]# curl -s --head http://kuchennefrykasy.pl
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 01 Jul 2015 19:34:33 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://kuchennefrykasy.pl/xmlrpc.php
Set-Cookie: PHPSESSID=fcb72da88cfc16216a4b7c9e3b35f0fa; path=/
X-Micro-Cache: MISS
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-01, 21:34:10
Different is 'HTTP/1.1 301 Moved Permanently' and 'HTTP/1.1 200 OK'
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 21:39:06
Different is 'HTTP/1.1 301 Moved Permanently' and 'HTTP/1.1 200 OK'

Yes, but see the same for www - non-working:

Quote
curl -s --head http://www.webmama.com.pl
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Wed, 01 Jul 2015 19:42:15 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://www.webmama.com.pl/xmlrpc.php
Set-Cookie: PHPSESSID=83af7779567b99953a26eee3e999735b; path=/
Location: http://www.webmama.com.pl/
X-Micro-Cache: MISS

and working:

Quote
curl -s --head http://www.kuchennefrykasy.pl
HTTP/1.1 200 OK
Server: nginx
Date: Wed, 01 Jul 2015 19:42:44 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
X-Pingback: http://kuchennefrykasy.pl/xmlrpc.php
Set-Cookie: PHPSESSID=82a2c027e4187578e8bf88a68872e7e1; path=/
X-Micro-Cache: MISS
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-01, 21:49:27
Maybe https://wordpress.org/support/topic/fetch-as-google-returns-301-moved-permanently and http://infoheap.com/handle-redirects-in-wordpress/ related for your issue.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 21:55:00
Maybe https://wordpress.org/support/topic/fetch-as-google-returns-301-moved-permanently and http://infoheap.com/handle-redirects-in-wordpress/ related for your issue.

Something is wrong in http24 config ;( It happens also when trying to lynx to port 30080.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 22:59:54
I have to restore Apache 2.2 from backup - too many bugs for me.

- non-working some Wordpress installations
- non-working secondary PHP
+ improved speed
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 23:19:11
I've changed customer website from www to non-www and it started working !

http://webmama.com.pl/

Also some interesting logs:

Quote
httpd[24340]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d896aab08 error 14 in mod_mime.so[7f3d948d3000+1ff000]
httpd[24456]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d8aaaca18 error 14
httpd[24458]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d896aab08 error 14
httpd[24457]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d8a0abb08 error 14 in mod_mime.so[7f3d948d3000+1ff000]
 in mod_mime.so[7f3d948d3000+1ff000]
 in mod_mime.so[7f3d948d3000+1ff000]
httpd[25237]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d80df9a18 error 14 in mod_mime.so[7f3d948d3000+1ff000]
httpd[25397]: segfault at 7f3d94ac49e0 ip 00007f3d94ac49e0 sp 00007f3d7d1f3b08 error 14 in mod_mime.so[7f3d948d3000+1ff000]
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-01, 23:38:55
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 08:46:11
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/
The code inside .htaccess is non-www to www. After change ownership of .htaccess, redirect is work.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 11:40:38
I've added redirect from www to non-www and it's not working on your server: http://www.xl3.mratwork.com/
The code inside .htaccess is non-www to www. After change ownership of .htaccess, redirect is work.

I use the same code here and it works as it should: http://www.test.internet.az.pl (under Apache 2.2 of course).
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 12:00:32
Original ownership of your .htaccess is 471:root and then change to admin:admin make it's work!.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 12:58:07
Original ownership of your .htaccess is 471:root and then change to admin:admin make it's work!.


I've tested on many domains on my server. I'm sure they got proper permissions.

I will make a copy of some troubleshooting Wordpress to your server in order to investigate these redirections again.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 13:55:37
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 17:11:35
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.

Why it works well with apache 2.2 and suphp ?
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 17:24:53
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.

Why it works well with apache 2.2 and suphp ?
Did you try change ownership to root:root in your apache 2.2?.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 18:05:47
Suphp more tight/strict for ownership and permissions. Use fix-chownchmod is resolving this issue.

Why it works well with apache 2.2 and suphp ?
Did you try change ownership to root:root in your apache 2.2?.

I mean I got proper permissions on my server and they only work with apache 2.2. Throws Internal Server Error on 2.4. Running /script/fix-chownchmod does not help as well ;(
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 18:17:16
Suphp has the same setting for httpd 2.2 and 2.4.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 18:18:44
Suphp has the same setting for httpd 2.2 and 2.4.

Permissions are not changed for .htaccess here:

Fixing Chown and Chmod
- chown admin:apache FOR /home/admin/
- chmod 751 FOR /home/admin/
- chown admin:admin FOR INSIDE /home/admin/kloxoscript/
- chown admin:apache FOR /home/admin/kloxoscript/
- chmod 644 FOR *.php* INSIDE /home/admin/kloxoscript/
- chmod 755 FOR /home/admin/kloxoscript/ AND INSIDE
- chown admin:admin FOR INSIDE /home/admin/test.com/
- chmod 644 FOR *.php* INSIDE /home/admin/test.com/
- chmod 755 FOR *.pl/cgi/py/rb INSIDE /home/admin/test.com/
- chmod 755 FOR /home/admin/test.com/ AND INSIDE
- chmod 777 FOR /home/httpd/test.com/stats AND INSIDE
- chown admin:admin FOR /home/admin/test.com/
- chown admin:admin FOR /home/lxadmin/mail/domains/test.com/
- chown admin:admin FOR INSIDE /home/lxadmin/mail/domains/test.com/
- chmod 600 FOR * INSIDE /home/lxadmin/mail/domains/test.com/
- chmod 700 FOR /home/lxadmin/mail/domains/test.com/ AND INSIDE
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 18:20:18
Got it working on my server !

Quote
[root@localhost test.com]# ls -al
razem 16
drwxr-xr-x. 2 admin admin  4096 07-01 19:51 .
drwxr-x--x. 5 admin apache 4096 07-01 14:18 ..
-rw-r--r--. 1 admin admin   624 07-01 13:20 .htaccess
-rw-r--r--. 1 admin admin    17 07-01 13:13 index.php

Quote
curl -s --head http://test.com
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 16:24:45 GMT
Content-Type: text/html; charset=utf-8
Connection: keep-alive
X-Powered-By: PHP/5.2.17
X-Micro-Cache: EXPIRED

Now testing Wordpress on your server.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 18:52:44
It should be redirected to www and it's not :( http://xl3.mratwork.com/
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 19:00:10
It's redirect to www in my firefox browser.

Remove or modified in your ws-config.php for '<?php if (!in_array($_SERVER["REMOTE_ADDR"], array("62.21.44.49")) && file_exists('/home/gatek89/webmama.com.pl/wp-content/plugins/gotmls/safe-load/wp-login.php')) require_once('/home/gatek89/webmama.com.pl/wp-content/plugins/gotmls/safe-load/wp-login.php'); // Load Brute-Force Protection by GOTMLS.NET before the WordPress bootstrap. ?>'
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 19:02:23
Wait I will try another one which didn't worked yesterday.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 19:13:42
Not working for me see: http://xl3.mratwork.com/ it should be redirected to www
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 19:20:46
Also redirect from non-www to www in my browser.

So, look like something wrong with your browser and ISP cache. Try clear browser cache.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 19:34:55
Also redirect from non-www to www in my browser.

So, look like something wrong with your browser and ISP cache. Try clear browser cache.

Main page is not working with www. Rest is from my server. Tried 3 different browsers and 2 ISP's.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 19:38:31
Also redirect from non-www to www in my browser.

So, look like something wrong with your browser and ISP cache. Try clear browser cache.

Main page is not working with www. Rest is from my server. Tried 3 different browsers and 2 ISP's.
Try using zenMate as Firefox plugin.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 19:43:33
It's NOT working anywhere. My ISP isn't blocking anything...

When you go to samsungforum.pl it instantly has www before.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 20:12:18
Please not this domain does not have www redirect inside Kloxo panel so it must be pure mod_rewrite...
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 20:12:40
I am testing my xl3.mratwork.com and when access to http://xl3.mratwork.com always redirect to http://www.xl3.mratwork.com.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 20:16:41
Panel in xl3.mratwork.com also not enable 'Force Redirect Domain.com To Www.domain.com' in 'admin > www redirect'.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 20:37:27
Access to http://webmama.com.pl and then redirect to http://www.webmama.com.pl/ smoothly.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 20:54:17
Access to http://webmama.com.pl and then redirect to http://www.webmama.com.pl/ smoothly.

It's back on Apache 2.2 ;(
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 20:54:54
Panel in xl3.mratwork.com also not enable 'Force Redirect Domain.com To Www.domain.com' in 'admin > www redirect'.

It does not work on all my devices so you've got probably some cache...
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 21:02:04
No. browser cache already cleared and also execute 'ipconfig /flushdns' in windows's command prompt.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 21:18:36
No. browser cache already cleared and also execute 'ipconfig /flushdns' in windows's command prompt.

What about other browsers Chrome, IE etc. ?
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 21:24:30
From my desktop:

C:\Users\Marek\Desktop>curl -s --head http://xl3.mratwork.com/
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:27:56 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
X-Micro-Cache: MISS

The same for Apache 2.2:

C:\Users\Marek\Desktop>curl -s --head http://samsungforum.pl
HTTP/1.1 301 Moved Permanently
Server: nginx
Date: Thu, 02 Jul 2015 19:29:26 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
Location: http://www.samsungforum.pl/
Vary: Accept-Encoding,User-Agent
X-Micro-Cache: MISS
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 21:30:17
Same from your server:

[root@xl3 ~]# curl -s --head http://xl3.mratwork.com/
HTTP/1.1 200 OK
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:32:35 GMT
Content-Type: text/html; charset=UTF-8
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.samsungforum.pl/xmlrpc.php
X-Micro-Cache: EXPIRED
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 21:34:05
Your samsungforum.pl already redirect to their www in my firefox.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 21:36:34
Your samsungforum.pl already redirect to their www in my firefox.

Wait I will try to redirect to your server.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 21:38:18
Bingo - now we have redirect loop :D

Quote
[root@xl3 globals]# curl -s --head http://xl3.mratwork.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:42:34 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
X-Micro-Cache: EXPIRED

[root@xl3 globals]# curl -s --head http://www.xl3.mratwork.com/
HTTP/1.1 301 Moved Permanently
Server: nginx/1.9.2
Date: Thu, 02 Jul 2015 19:42:38 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 0
Connection: keep-alive
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
X-Micro-Cache: EXPIRED
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 22:35:55
It seems it properly redirecting from non-www to www, but then tries to go back to non-www and that's not possible ;(
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 23:05:43
I think something work with nginx-proxy. I didn't found this issue when using hiawatha-proxy.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-02, 23:07:50
Check http://op1.mratwork.com (using hiawatha + httpd 2.4).
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-02, 23:53:30
Check http://op1.mratwork.com (using hiawatha + httpd 2.4).

Works fine. So we need to investigate nginx now.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-03, 00:20:52
Something is wrong in Apache 2.4 when running with nginx:

Quote
[root@xl3 globals]# curl -s --head http://www.xl3.mratwork.com:30080
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:24:18 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8

[root@xl3 globals]# curl -s --head http://xl3.mratwork.com:30080
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:24:25 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8

Without nginx:

Quote
[root@xl3 /]# curl -s --head http://xl3.mratwork.com
HTTP/1.1 301 Moved Permanently
Date: Thu, 02 Jul 2015 22:45:40 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Location: http://www.xl3.mratwork.com/
Connection: close
Content-Type: text/html; charset=UTF-8

[root@xl3 /]# curl -s --head http://www.xl3.mratwork.com
HTTP/1.1 200 OK
Date: Thu, 02 Jul 2015 22:45:44 GMT
Server: Apache/2.4.12 (Red Hat)
X-Powered-By: PHP/5.6.10
X-Pingback: http://www.xl3.mratwork.com/xmlrpc.php
Connection: close
Content-Type: text/html; charset=UTF-8
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-03, 01:03:00
I've changed in switch_standard.conf:

Quote
proxy_set_header X-Host $var_domain;

to

Quote
proxy_set_header X-Host $host;

and it works.

Now need to test dedicated IP: http://serverfault.com/questions/394983/nginx-proxying-to-multiple-ip-addresses-for-cms-website-preview
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-03, 01:30:26
Also secondary PHP stopped working again.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-03, 23:27:11
Does it work now ?
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: MRatWork on 2015-07-04, 03:58:25
No issue I found in xl3.mratwork.com. Check .httaccess where I add 'SetHandler x-httpd-php54' and then access phpinfo.php.
Title: Re: Wordpress redirect loop after upgrade to httpd24
Post by: Spacedust on 2015-07-04, 11:49:09
Yes. It works well now, so we can upgrade ;)