create actions from string in a way that won't crash