boolean flags of placing mode replaced with enum switch