add defaults to switchs to prevent compiler warnings