added support for custom marker classes
ie bugfix