crud for snager + integration to elastic service + extracting global functions