fixing 'this' bindings in static methods, adding 'capability' checks, closes #7