added state and started_by funcionality to search