ugly implementation of tags; improve before release!