cap support

Suggestions and critics are welcome :)