fixed #58 (ordering of handler priorities)