added level parameter mode, closes #4