improvements for specs, introducing karma (must be finished)