added more generic flex helpers