fix: change parameter order for backwards compatibilty